package com.hoyo.service;

import java.util.List;

import com.hoyo.common.PageInfo;
import com.hoyo.domain.Channel;

public interface  ChannelService {
	
	/**
	 * 保存频道信息
	 * @param id
	 * @param channelName
	 * @param description
	 * @return
	 * @throws Exception
	 */
	PageInfo<Channel> save(int id, String channelName, String description) throws Exception;
	
	/**
	 * 获取所有频道信息
	 * @return
	 * @throws Exception
	 */
	List<Channel> findAllChannels()throws Exception;
	
	/**
	 * 获取频道信息和频道视频总数
	 * @return
	 * @throws Exception
	 */
	List<Channel> findAllChannelsAndCountMovieInEveryChannel()throws Exception;
	
	/**
	 * 分页获取所有频道信息
	 * @param pageNum
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	PageInfo<Channel> pageFind(int pageNum, int pageSize) throws Exception;
}
